﻿//工作地点
var ja=[];
//ja['0100']='北京';
//ja['0200']='上海';
//ja['0300']='广东省';
//ja['0302']='广州';
//ja['0303']='惠州';
//ja['0304']='汕头';
//ja['0305']='珠海';
//ja['0306']='佛山';
//ja['0307']='中山';
//ja['0308']='东莞';
//ja['0314']='韶关';
//ja['0315']='江门';
//ja['0317']='湛江';
//ja['0318']='肇庆';
//ja['0319']='清远';
//ja['0320']='潮州';
//ja['0321']='河源';
//ja['0322']='揭阳';
//ja['0323']='茂名';
//ja['0324']='汕尾';
//ja['0325']='顺德';
//ja['0326']='梅州';
//ja['0327']='开平';
//ja['0328']='阳江';
//ja['0329']='云浮';
//ja['0400']='深圳';
//ja['0500']='天津';
//ja['0600']='重庆';
//ja['0700']='江苏省';
//ja['0702']='南京';
//ja['0703']='苏州';
//ja['0704']='无锡';
//ja['0705']='常州';
//ja['0706']='昆山';
//ja['0707']='常熟';
//ja['0708']='扬州';
//ja['0709']='南通';
//ja['0710']='镇江';
//ja['0711']='徐州';
//ja['0712']='连云港';
//ja['0713']='盐城';
//ja['0714']='张家港';
//ja['0715']='江阴';
//ja['0716']='太仓';
//ja['0717']='吴江';
//ja['0718']='泰州';
//ja['0719']='淮安';
//ja['0720']='宿迁';
//ja['0721']='丹阳';
//ja['0722']='溧阳';
//ja['0723']='泰兴';
//ja['0724']='宜兴';
//ja['0800']='浙江省';
//ja['0802']='杭州';
//ja['0803']='宁波';
//ja['0804']='温州';
//ja['0805']='绍兴';
//ja['0806']='金华';
//ja['0807']='嘉兴';
//ja['0808']='台州';
//ja['0809']='湖州';
//ja['0810']='丽水';
//ja['0811']='舟山';
//ja['0812']='衢州';
//ja['0813']='萧山';
//ja['0814']='义乌';
//ja['0815']='慈溪';
//ja['0816']='海宁';
//ja['0900']='四川省';
//ja['0902']='成都';
//ja['0903']='绵阳';
//ja['0904']='乐山';
//ja['0905']='泸州';
//ja['0906']='德阳';
//ja['0907']='宜宾';
//ja['0908']='自贡';
//ja['0909']='内江';
//ja['0910']='攀枝花';
//ja['0911']='南充';
//ja['0912']='眉山';
//ja['1000']='海南省';
//ja['1002']='海口';
//ja['1003']='三亚';
//ja['1100']='福建省';
//ja['1102']='福州';
//ja['1103']='厦门';
//ja['1104']='泉州';
//ja['1105']='漳州';
//ja['1106']='莆田';
//ja['1107']='三明';
//ja['1108']='南平';
//ja['1109']='宁德';
//ja['1110']='龙岩';
ja['1200']='山东省';
ja['1202'] = '济南';

ja['120202'] = '市区';
ja['120203'] = '历下';
ja['120204'] = '历城';
ja['120205'] = '槐荫';
ja['120206'] = '天桥';
ja['120207'] = '市中';
ja['120208'] = '长清';
ja['120209'] = '平阴';
ja['120210'] = '商河';
ja['120211'] = '济阳';
ja['120212'] = '章丘市';
ja['120213'] = '高新区';
ja['1203'] = '青岛';

ja['120302'] = '市南';
ja['120303'] = '市北';
ja['120304'] = '四方';
ja['120305'] = '李沧';
ja['120306'] = '崂山';
ja['120307'] = '黄岛';
ja['120308'] = '城阳';
ja['120309'] = '即墨';
ja['120310'] = '胶州';
ja['120311'] = '胶南';
ja['120312'] = '平度';
ja['120313'] = '莱西';
ja['120314'] = '开发区';
ja['120315'] = '保税港区';
ja['120316'] = '高新区';
ja['1204'] = '烟台';

ja['120402'] = '芝罘区';
ja['120403'] = '莱山区';
ja['120404'] = '福山区';
ja['120405'] = '牟平区';
ja['120406'] = '蓬莱';
ja['120407'] = '龙口';
ja['120408'] = '莱州';
ja['120409'] = '招远';
ja['120410'] = '栖霞';
ja['120411'] = '莱阳';
ja['120412'] = '海阳';
ja['120413'] = '长岛';
ja['120414'] = '开发区';
ja['120415'] = '保税港区';
ja['120416'] = '高新区';
ja['1205'] = '潍坊';

ja['120502'] = '市区';
ja['120503'] = '奎文';
ja['120504'] = '潍城';
ja['120505'] = '寒亭';
ja['120506'] = '坊子';
ja['120507'] = '青州';
ja['120508'] = '诸城';
ja['120509'] = '寿光';
ja['120510'] = '高密';
ja['120511'] = '安丘';
ja['120512'] = '昌邑';
ja['120513'] = '昌乐';
ja['120514'] = '临朐';
ja['120515'] = '高新区';
ja['120516'] = '开发区';
ja['1206'] = '威海';

ja['120602'] = '市区';
ja['120603'] = '荣成市';
ja['120604'] = '文登市';
ja['120605'] = '乳山市';
ja['120606'] = '环翠区';
ja['120607'] = '开发区';
ja['120608'] = '高新区';
ja['1207'] = '淄博';

ja['120702'] = '市区';
ja['120703'] = '张店';
ja['120704'] = '淄川';
ja['120705'] = '博山';
ja['120706'] = '临淄';
ja['120707'] = '周村';
ja['120708'] = '桓台';
ja['120709'] = '高青';
ja['120710'] = '沂源';
ja['120711'] = '高新区';
ja['120712'] = '开发区';
ja['1208'] = '临沂';

ja['120801'] = '市区';
ja['120802'] = '兰山';
ja['120803'] = '罗庄';
ja['120804'] = '河东';
ja['120805'] = '郯城';
ja['120806'] = '苍山';
ja['120807'] = '莒南';
ja['120808'] = '沂水';
ja['120809'] = '蒙阴';
ja['120810'] = '平邑';
ja['120811'] = '费县';
ja['120812'] = '沂南';
ja['120813'] = '临沭';
ja['120814'] = '开发区';
ja['120815'] = '高新区';
ja['1209'] = '济宁';

ja['120902'] = '市区';
ja['120903'] = '市中区';
ja['120904'] = '任城区';
ja['120905'] = '曲阜';
ja['120906'] = '兖州';
ja['120907'] = '邹城';
ja['120908'] = '微山';
ja['120909'] = '鱼台';
ja['120910'] = '金乡';
ja['120911'] = '嘉祥';
ja['120912'] = '汶上';
ja['120913'] = '泗水';
ja['120914'] = '梁山';
ja['120915'] = '高新区';
ja['1210'] = '东营';

ja['121002'] = '市区';
ja['121003'] = '东营区';
ja['121004'] = '河口区';
ja['121005'] = '广饶';
ja['121006'] = '垦利';
ja['121007'] = '利津';
ja['121008'] = '开发区';
ja['1211'] = '泰安';

ja['121102'] = '市区';
ja['121103'] = '泰山区';
ja['121104'] = '岱岳区';
ja['121105'] = '新泰市';
ja['121106'] = '肥城市';
ja['121107'] = '宁阳';
ja['121108'] = '东平';
ja['121109'] = '高新区';
ja['1212'] = '日照';

ja['121202'] = '市区';
ja['121203'] = '东港区';
ja['121204'] = '岚山区';
ja['121205'] = '莒县';
ja['121206'] = '五莲县';
ja['121207'] = '开发区';
ja['1213'] = '德州';

ja['121302'] = '市区';
ja['121304'] = '禹城';
ja['121305'] = '乐陵';
ja['121306'] = '宁津';
ja['121307'] = '陵县';
ja['121308'] = '临邑';
ja['121309'] = '平原';
ja['121310'] = '武城';
ja['121311'] = '夏津';
ja['121312'] = '庆云';
ja['121313'] = '齐河';
ja['121314'] = '开发区';
ja['1214'] = '菏泽';

ja['121402'] = '市区';
ja['121403'] = '牡丹区';
ja['121404'] = '定陶';
ja['121405'] = '曹县';
ja['121406'] = '成武';
ja['121407'] = '单县';
ja['121408'] = '巨野';
ja['121409'] = '郓城';
ja['121410'] = '鄄城';
ja['121411'] = '东明';
ja['121412'] = '开发区';
ja['1215'] = '滨州';

ja['121502'] = '市区';
ja['121503'] = '滨城区';
ja['121504'] = '无棣';
ja['121505'] = '阳信';
ja['121506'] = '沾化';
ja['121507'] = '惠民';
ja['121508'] = '博兴';
ja['121509'] = '邹平';
ja['121510'] = '开发区';
ja['1216'] = '枣庄';

ja['121602'] = '薛城区';
ja['121603'] = '市中区';
ja['121604'] = '山亭区';
ja['121605'] = '峄城区';
ja['121606'] = '台儿庄';
ja['121607'] = '滕州市';
ja['121608'] = '高新区';
ja['121609'] = '开发区';
ja['1217'] = '聊城';

ja['121702'] = '市区';
ja['121703'] = '东昌府区';
ja['121704'] = '临清市';
ja['121705'] = '冠县';
ja['121706'] = '莘县';
ja['121707'] = '阳谷';
ja['121708'] = '东阿';
ja['121709'] = '茌平';
ja['121710'] = '高唐';
ja['121711'] = '开发区';
ja['1218'] = '莱芜';

ja['121802'] = '莱城区';
ja['121803'] = '钢城区';
ja['121804'] = '开发区';
ja['121805'] = '高新区';
ja['1219'] = '其他省份';
ja['121901'] = '北京';
ja['121902'] = '天津';
ja['121903'] = '河北';
ja['121904'] = '山西';
ja['121905'] = '内蒙古';
ja['121906'] = '辽宁';
ja['121907'] = '吉林';
ja['121908'] = '黑龙江';
ja['121909'] = '上海';
ja['121910'] = '江苏';
ja['121911'] = '浙江';
ja['121912'] = '安徽';
ja['121913'] = '福建';
ja['121914'] = '江西';
ja['121915'] = '山东';
ja['121916'] = '河南';
ja['121917'] = '湖北';
ja['121918'] = '湖南';
ja['121919'] = '广东';
ja['121920'] = '广西';
ja['121921'] = '海南';
ja['121922'] = '重庆';
ja['121923'] = '四川';
ja['121924'] = '贵州';
ja['121925'] = '云南';
ja['121926'] = '西藏';
ja['121927'] = '陕西';
ja['121928'] = '甘肃';
ja['121929'] = '青海';
ja['121930'] = '宁夏';
ja['121931'] = '新疆';
ja['121932'] = '香港';
ja['121933'] = '澳门';
ja['121934'] = '台湾';
ja['121935'] = '国外';
//ja['1300']='江西省';
//ja['1302']='南昌';
//ja['1303']='九江';
//ja['1400']='广西';
//ja['1402']='南宁';
//ja['1403']='桂林';
//ja['1404']='柳州';
//ja['1405']='北海';
//ja['1406']='玉林';
//ja['1500']='安徽省';
//ja['1502']='合肥';
//ja['1503']='芜湖';
//ja['1504']='安庆';
//ja['1505']='马鞍山';
//ja['1506']='蚌埠';
//ja['1507']='阜阳';
//ja['1508']='铜陵';
//ja['1509']='滁州';
//ja['1510']='黄山';
//ja['1511']='淮南';
//ja['1512']='六安';
//ja['1513']='巢湖';
//ja['1514']='宣城';
//ja['1515']='池州';
//ja['1516']='宿州';
//ja['1600']='河北省';
//ja['1602']='石家庄';
//ja['1603']='廊坊';
//ja['1604']='保定';
//ja['1605']='唐山';
//ja['1606']='秦皇岛';
//ja['1607']='邯郸';
//ja['1608']='沧州';
//ja['1609']='张家口';
//ja['1610']='承德';
//ja['1700']='河南省';
//ja['1702']='郑州';
//ja['1703']='洛阳';
//ja['1704']='开封';
//ja['1705']='焦作';
//ja['1706']='南阳';
//ja['1707']='新乡';
//ja['1708']='周口';
//ja['1709']='安阳';
//ja['1800']='湖北省';
//ja['1802']='武汉';
//ja['1803']='宜昌';
//ja['1804']='黄石';
//ja['1805']='襄樊';
//ja['1806']='十堰';
//ja['1807']='荆州';
//ja['1808']='荆门';
//ja['1809']='孝感';
//ja['1810']='鄂州';
//ja['1811']='黄冈';
//ja['1812']='随州';
//ja['1900']='湖南省';
//ja['1902']='长沙';
//ja['1903']='株洲';
//ja['1904']='湘潭';
//ja['1905']='衡阳';
//ja['1906']='岳阳';
//ja['1907']='常德';
//ja['1908']='益阳';
//ja['1909']='郴州';
//ja['1910']='邵阳';
//ja['1911']='怀化';
//ja['1912']='娄底';
//ja['1913']='永州';
//ja['1914']='张家界';
//ja['2000']='陕西省';
//ja['2002']='西安';
//ja['2003']='咸阳';
//ja['2004']='宝鸡';
//ja['2005']='铜川';
//ja['2006']='延安';
//ja['2007']='渭南';
//ja['2008']='榆林';
//ja['2009']='汉中';
//ja['2010']='安康';
//ja['2011']='商洛';
//ja['2012']='杨凌';
//ja['2100']='山西省';
//ja['2102']='太原';
//ja['2103']='运城';
//ja['2104']='大同';
//ja['2105']='临汾';
//ja['2200']='黑龙江省';
//ja['2202']='哈尔滨';
//ja['2203']='伊春';
//ja['2204']='绥化';
//ja['2205']='大庆';
//ja['2206']='齐齐哈尔';
//ja['2207']='牡丹江';
//ja['2208']='佳木斯';
//ja['2300']='辽宁省';
//ja['2302']='沈阳';
//ja['2303']='大连';
//ja['2304']='鞍山';
//ja['2305']='营口';
//ja['2306']='抚顺';
//ja['2307']='锦州';
//ja['2308']='丹东';
//ja['2309']='葫芦岛';
//ja['2310']='本溪';
//ja['2311']='辽阳';
//ja['2312']='铁岭';
//ja['2400']='吉林省';
//ja['2402']='长春';
//ja['2403']='吉林';
//ja['2404']='辽源';
//ja['2405']='通化';
//ja['2406']='四平';
//ja['2407']='松原';
//ja['2408']='延吉';
//ja['2500']='云南省';
//ja['2502']='昆明';
//ja['2503']='曲靖';
//ja['2504']='玉溪';
//ja['2505']='大理';
//ja['2506']='丽江';
//ja['2507']='蒙自';
//ja['2508']='开远';
//ja['2509']='个旧';
//ja['2510']='红河州';
//ja['2600']='贵州省';
//ja['2602']='贵阳';
//ja['2603']='遵义';
//ja['2700']='甘肃省';
//ja['2702']='兰州';
//ja['2703']='金昌';
//ja['2800']='内蒙古';
//ja['2802']='呼和浩特';
//ja['2803']='赤峰';
//ja['2804']='包头';
//ja['2805']='嘉峪关';
//ja['2806']='酒泉';
//ja['2900']='宁夏';
//ja['2902']='银川';
//ja['3000']='西藏';
//ja['3002']='拉萨';
//ja['3003']='日喀则';
//ja['3100']='新疆';
//ja['3102']='乌鲁木齐';
//ja['3103']='克拉玛依';
//ja['3104']='喀什地区';
//ja['3105']='伊犁';
//ja['3200']='青海省';
//ja['3202']='西宁';
//ja['3300']='香港';
//ja['3400']='澳门';
//ja['3500']='台湾';
//ja['3600']='国外';
//主要城市数据字典
var maincity = [['山东', ['1202', '1203', '1207','1216', '1210', '1204', '1205', '1206', '1209', '1211', '1212', '1218', '1208', '1213', '1215',  '1214', '1217', '1219']]];
//所有省份数据字典
var allprov=[['华北-东北',['1600','2100','2800','2300','2400','2200']],['华东地区',['0700','0800','1500','1100','1300','1200']],['华南-华中',['0300','1400','1000','1700','1800','1900']],['西北-西南',['2000','2700','3200','2900','3100','0900','2600','2500','3000']],['其它',['3300','3400','3500','3600']]];
var allprovArray=new Array('1600','2100','2800','2300','2400','2200','0700','0800','1500','1100','1300','1200','0300','1400','1000','1700','1800','1900','2000','2700','3200','2900','3100','0900','2600','2500','3000');
//所有省+直辖市
var allProvDuchy=new Array('0100','0200','0300','0400','0500','0600','1600','2100','2800','2300','2400','2200','0700','0800','1500','1100','1300','1200','0300','1400','1000','1700','1800','1900','2000','2700','3200','2900','3100','0900','2600','2500','3000','3300','3400','3500','3600');

function getAreaIDs(idx){
	var newArr = new Array();
	for (var i in ja){
		if(i.substr(0,2)==idx.substr(0,2)){
			newArr[newArr.length]=i;
		}
	}
	return newArr;
}
function getAreaIDsmy(idx) {
    var newArr = new Array();
    for (var i in ja) {
        if (i.substr(0, 4) == idx.substr(0, 4)) {
            newArr[newArr.length] = i;
        }
    }
    return newArr;
}
//function getAllArea(idx) {
//    var newArr;
//    if (idx.lenght ==6) { 
//     for (var i in ja) {
//        if (i == idx.substr(0, 4)) {
//            newArr =ja[i]+""+ja[idx];
//        }
//    }
//    else
//    {
//    for (var i in ja) {
//        if (i == idx.substr(0, 2)) {
//            newArr =ja[i];
//        }
//        }
//    }
//    return newArr;
//}


/* function getAreaIDs(idx){
	switch(idx){
		case '0100':
			return new Array('0100');
		case '0200':
			return new Array('0200');
		case '0300':
			return new Array('0300','0302','0400','0303','0304','0305','0306','0307','0308','0310','0314','0315','0316','0317','0318','0319','0320','0321','0322','0323','0324','0325');
		case '0400':
			return new Array('0400');
		case '0500':
			return new Array('0500');
		case '0600':
			return new Array('0600');
		case '0700':
			return new Array('0700','0702','0703','0704','0705','0706','0707','0708','0709','0710','0711','0712','0713','0714');
		case '0800':
			return new Array('0800','0802','0803','0804','0805','0806','0807','0808','0809','0810','0811','0812');
		case '0900':
			return new Array('0900','0902','0903','0904','0905','0906','0907','0908','0909','0910');
		case '1000':
			return new Array('1000','1002','1003');
		case '1100':
			return new Array('1100','1102','1103','1104','1105','1106','1107','1108','1109','1110');
		case '1200':
			return new Array('1200','1202','1203','1204','1205','1206','1207','1208','1209','1210','1211','1212','1213');
		case '1300':
			return new Array('1300','1302','1303');
		case '1400':
			return new Array('1400','1402','1403','1404','1405');
		case '1500':
			return new Array('1500','1502','1503','1504','1505','1506','1507','1508','1509','1510','1511','1512','1513','1514','1515');
		case '1600':
			return new Array('1600','1602','1603','1604','1605','1606');
		case '1700':
			return new Array('1700','1702','1703','1704');
		case '1800':
			return new Array('1800','1802','1803','1804','1805','1806','1807','1808','1809','1810');
		case '1900':
			return new Array('1900','1902','1903','1904','1905','1906','1907','1908','1909','1910','1911','1912','1913','1914');
		case '2000':
			return new Array('2000','2002','2003','2004','2005','2006');
		case '2100':
			return new Array('2100','2102','2103','2104','2105');
		case '2200':
			return new Array('2200','2202','2203','2204','2205','2206','2207','2208');
		case '2300':
			return new Array('2300','2302','2303','2304','2305','2306','2307','2308','2309','2310','2311','2312');
		case '2400':
			return new Array('2400','2402','2403','2404','2405');
		case '2500':
			return new Array('2500','2502','2503','2504','2505','2506','2507','2508','2509','2510');
		case '2600':
			return new Array('2600','2602','2603');
		case '2700':
			return new Array('2700','2702','2703');
		case '2800':
			return new Array('2800','2802','2803','2804');
		case '2900':
			return new Array('2900','2902');
		case '3000':
			return new Array('3000','3002','3003');
		case '3100':
			return new Array('3100','3102','3103','3104');
		case '3200':
			return new Array('3200','3202');
		case '3300':
			return new Array('3300','3300');
		case '3400':
			return new Array('3400','3400');
		case '3500':
			return new Array('3500','3500');
		case '3600':
			return new Array('3600','3600');
		default:
			return new Array();
	}
} */